<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Satellite: Satellite/RTC/SPI/spi.h File Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="LASAR Logo.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Satellite
   &#160;<span id="projectnumber">Revision 55</span>
   </div>
   <div id="projectbrief">Embedded AC Light Control and Bluetooth</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div>
<div class="header">
  <div class="summary">
<a href="#define-members">Defines</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Satellite/RTC/SPI/spi.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;avr/io.h&gt;</code><br/>
</div>
<p><a href="spi_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="define-members"></a>
Defines</h2></td></tr>
<tr class="memitem:a003fbe87aad5106aed3802d794580bbf"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="spi_8h.html#a003fbe87aad5106aed3802d794580bbf">SPI_SS_PIN</a>&#160;&#160;&#160;PORTD5</td></tr>
<tr class="memitem:aee89f642bb559e12db93e9f412ea185e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="spi_8h.html#aee89f642bb559e12db93e9f412ea185e">SPI_SCK_PIN</a>&#160;&#160;&#160;PORTB5</td></tr>
<tr class="memitem:a67d2c0b6e0ecbd0351958756e4830172"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="spi_8h.html#a67d2c0b6e0ecbd0351958756e4830172">SPI_MOSI_PIN</a>&#160;&#160;&#160;PORTB3</td></tr>
<tr class="memitem:a315722498711fce1e1aa6ea6654385cf"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="spi_8h.html#a315722498711fce1e1aa6ea6654385cf">SPI_MISO_PIN</a>&#160;&#160;&#160;PORTB4</td></tr>
<tr class="memitem:a1ec07ad94d5f6276c1c0b41d0550fe52"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="spi_8h.html#a1ec07ad94d5f6276c1c0b41d0550fe52">SPI_MODE_0</a>&#160;&#160;&#160;0x00 /* Sample (Rising) Setup (Falling) CPOL=0, CPHA=0 */</td></tr>
<tr class="memitem:af2af9f45539491c9753960535dc20fde"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="spi_8h.html#af2af9f45539491c9753960535dc20fde">SPI_MODE_1</a>&#160;&#160;&#160;0x01 /* Setup (Rising) Sample (Falling) CPOL=0, CPHA=1 */</td></tr>
<tr class="memitem:a8fa3edd8616f8803490c93f09243a612"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="spi_8h.html#a8fa3edd8616f8803490c93f09243a612">SPI_MODE_2</a>&#160;&#160;&#160;0x02 /* Sample (Falling) Setup (Rising) CPOL=1, CPHA=0 */</td></tr>
<tr class="memitem:a6a091da9f9011457fe28ab25f64c858d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="spi_8h.html#a6a091da9f9011457fe28ab25f64c858d">SPI_MODE_3</a>&#160;&#160;&#160;0x03 /* Setup (Falling) Sample (Rising) CPOL=1, CPHA=1 */</td></tr>
<tr class="memitem:a5a49a9323b5e0f95d8f08cccde5439e6"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="spi_8h.html#a5a49a9323b5e0f95d8f08cccde5439e6">SPI_LSB</a>&#160;&#160;&#160;1 /* send least significant bit (bit 0) first */</td></tr>
<tr class="memitem:adbe0ae38094cacd36ef5bc6d08516ec3"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="spi_8h.html#adbe0ae38094cacd36ef5bc6d08516ec3">SPI_MSB</a>&#160;&#160;&#160;0 /* send most significant bit (bit 7) first */</td></tr>
<tr class="memitem:aafaf1f4083ac4fe007ce62dd12724ff7"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="spi_8h.html#aafaf1f4083ac4fe007ce62dd12724ff7">SPI_NO_INTERRUPT</a>&#160;&#160;&#160;0</td></tr>
<tr class="memitem:abcc154757b25dda166dce9045be9ab84"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="spi_8h.html#abcc154757b25dda166dce9045be9ab84">SPI_INTERRUPT</a>&#160;&#160;&#160;1</td></tr>
<tr class="memitem:a943af7f8a98cf5a3f2107ed593215a4b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="spi_8h.html#a943af7f8a98cf5a3f2107ed593215a4b">SPI_SLAVE</a>&#160;&#160;&#160;0xF0</td></tr>
<tr class="memitem:aa19f01bd2b4ca43f0f0db772769e6dd5"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="spi_8h.html#aa19f01bd2b4ca43f0f0db772769e6dd5">SPI_MSTR_CLK4</a>&#160;&#160;&#160;0x00 /* chip clock/4 */</td></tr>
<tr class="memitem:ad2ca6390ef48b2c620297486e0c5d623"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="spi_8h.html#ad2ca6390ef48b2c620297486e0c5d623">SPI_MSTR_CLK16</a>&#160;&#160;&#160;0x01 /* chip clock/16 */</td></tr>
<tr class="memitem:adc5bef0f466f34d6d483500098fb9d34"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="spi_8h.html#adc5bef0f466f34d6d483500098fb9d34">SPI_MSTR_CLK64</a>&#160;&#160;&#160;0x02 /* chip clock/64 */</td></tr>
<tr class="memitem:a1e9dd129ec884cd2ecd26eb445e7799c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="spi_8h.html#a1e9dd129ec884cd2ecd26eb445e7799c">SPI_MSTR_CLK128</a>&#160;&#160;&#160;0x03 /* chip clock/128 */</td></tr>
<tr class="memitem:a58e492986b1839ae5ed43e7e666059b4"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="spi_8h.html#a58e492986b1839ae5ed43e7e666059b4">SPI_MSTR_CLK2</a>&#160;&#160;&#160;0x04 /* chip clock/2 */</td></tr>
<tr class="memitem:aa9ffd89e575f13561ba82a516cb0de51"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="spi_8h.html#aa9ffd89e575f13561ba82a516cb0de51">SPI_MSTR_CLK8</a>&#160;&#160;&#160;0x05 /* chip clock/8 */</td></tr>
<tr class="memitem:a1721eae25c64517d5638fa590e85f0e6"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="spi_8h.html#a1721eae25c64517d5638fa590e85f0e6">SPI_MSTR_CLK32</a>&#160;&#160;&#160;0x06 /* chip clock/32 */</td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a718fd95b673032c496cb31b73e589ffb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="spi_8h.html#a718fd95b673032c496cb31b73e589ffb">setup_spi</a> (uint8_t mode, int dord, int interrupt, uint8_t clock)</td></tr>
<tr class="memitem:acff71e2314af39dd88d589808f64ae8d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="spi_8h.html#acff71e2314af39dd88d589808f64ae8d">disable_spi</a> (void)</td></tr>
<tr class="memitem:a6c4c47d9a595f6208f146fa4d75cff4d"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="spi_8h.html#a6c4c47d9a595f6208f146fa4d75cff4d">send_spi</a> (uint8_t out)</td></tr>
<tr class="memitem:a370f062d99c6c730acb14d8c16197e0c"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="spi_8h.html#a370f062d99c6c730acb14d8c16197e0c">received_from_spi</a> (uint8_t out)</td></tr>
</table>
<hr/><h2>Define Documentation</h2>
<a class="anchor" id="abcc154757b25dda166dce9045be9ab84"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="spi_8h.html#abcc154757b25dda166dce9045be9ab84">SPI_INTERRUPT</a>&#160;&#160;&#160;1</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a5a49a9323b5e0f95d8f08cccde5439e6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="spi_8h.html#a5a49a9323b5e0f95d8f08cccde5439e6">SPI_LSB</a>&#160;&#160;&#160;1 /* send least significant bit (bit 0) first */</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a315722498711fce1e1aa6ea6654385cf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="spi_8h.html#a315722498711fce1e1aa6ea6654385cf">SPI_MISO_PIN</a>&#160;&#160;&#160;PORTB4</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a1ec07ad94d5f6276c1c0b41d0550fe52"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="spi_8h.html#a1ec07ad94d5f6276c1c0b41d0550fe52">SPI_MODE_0</a>&#160;&#160;&#160;0x00 /* Sample (Rising) Setup (Falling) CPOL=0, CPHA=0 */</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="af2af9f45539491c9753960535dc20fde"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="spi_8h.html#af2af9f45539491c9753960535dc20fde">SPI_MODE_1</a>&#160;&#160;&#160;0x01 /* Setup (Rising) Sample (Falling) CPOL=0, CPHA=1 */</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a8fa3edd8616f8803490c93f09243a612"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="spi_8h.html#a8fa3edd8616f8803490c93f09243a612">SPI_MODE_2</a>&#160;&#160;&#160;0x02 /* Sample (Falling) Setup (Rising) CPOL=1, CPHA=0 */</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a6a091da9f9011457fe28ab25f64c858d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="spi_8h.html#a6a091da9f9011457fe28ab25f64c858d">SPI_MODE_3</a>&#160;&#160;&#160;0x03 /* Setup (Falling) Sample (Rising) CPOL=1, CPHA=1 */</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a67d2c0b6e0ecbd0351958756e4830172"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="spi_8h.html#a67d2c0b6e0ecbd0351958756e4830172">SPI_MOSI_PIN</a>&#160;&#160;&#160;PORTB3</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="adbe0ae38094cacd36ef5bc6d08516ec3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="spi_8h.html#adbe0ae38094cacd36ef5bc6d08516ec3">SPI_MSB</a>&#160;&#160;&#160;0 /* send most significant bit (bit 7) first */</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a1e9dd129ec884cd2ecd26eb445e7799c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="spi_8h.html#a1e9dd129ec884cd2ecd26eb445e7799c">SPI_MSTR_CLK128</a>&#160;&#160;&#160;0x03 /* chip clock/128 */</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ad2ca6390ef48b2c620297486e0c5d623"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="spi_8h.html#ad2ca6390ef48b2c620297486e0c5d623">SPI_MSTR_CLK16</a>&#160;&#160;&#160;0x01 /* chip clock/16 */</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a58e492986b1839ae5ed43e7e666059b4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="spi_8h.html#a58e492986b1839ae5ed43e7e666059b4">SPI_MSTR_CLK2</a>&#160;&#160;&#160;0x04 /* chip clock/2 */</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a1721eae25c64517d5638fa590e85f0e6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="spi_8h.html#a1721eae25c64517d5638fa590e85f0e6">SPI_MSTR_CLK32</a>&#160;&#160;&#160;0x06 /* chip clock/32 */</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aa19f01bd2b4ca43f0f0db772769e6dd5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="spi_8h.html#aa19f01bd2b4ca43f0f0db772769e6dd5">SPI_MSTR_CLK4</a>&#160;&#160;&#160;0x00 /* chip clock/4 */</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="adc5bef0f466f34d6d483500098fb9d34"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="spi_8h.html#adc5bef0f466f34d6d483500098fb9d34">SPI_MSTR_CLK64</a>&#160;&#160;&#160;0x02 /* chip clock/64 */</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aa9ffd89e575f13561ba82a516cb0de51"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="spi_8h.html#aa9ffd89e575f13561ba82a516cb0de51">SPI_MSTR_CLK8</a>&#160;&#160;&#160;0x05 /* chip clock/8 */</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aafaf1f4083ac4fe007ce62dd12724ff7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="spi_8h.html#aafaf1f4083ac4fe007ce62dd12724ff7">SPI_NO_INTERRUPT</a>&#160;&#160;&#160;0</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aee89f642bb559e12db93e9f412ea185e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="spi_8h.html#aee89f642bb559e12db93e9f412ea185e">SPI_SCK_PIN</a>&#160;&#160;&#160;PORTB5</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a943af7f8a98cf5a3f2107ed593215a4b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="spi_8h.html#a943af7f8a98cf5a3f2107ed593215a4b">SPI_SLAVE</a>&#160;&#160;&#160;0xF0</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a003fbe87aad5106aed3802d794580bbf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="spi_8h.html#a003fbe87aad5106aed3802d794580bbf">SPI_SS_PIN</a>&#160;&#160;&#160;PORTD5</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="acff71e2314af39dd88d589808f64ae8d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="spi_8h.html#acff71e2314af39dd88d589808f64ae8d">disable_spi</a> </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a370f062d99c6c730acb14d8c16197e0c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t <a class="el" href="spi_8h.html#a370f062d99c6c730acb14d8c16197e0c">received_from_spi</a> </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>out</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a6c4c47d9a595f6208f146fa4d75cff4d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t <a class="el" href="spi_8h.html#a6c4c47d9a595f6208f146fa4d75cff4d">send_spi</a> </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>out</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a718fd95b673032c496cb31b73e589ffb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="spi_8h.html#a718fd95b673032c496cb31b73e589ffb">setup_spi</a> </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>mode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dord</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>interrupt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>clock</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
</div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Thu Apr 19 2012 16:20:24 for Satellite by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.0
</small></address>

</body>
</html>
